package com.quanyan.util;



public class ClazzUtil {
	public static Class getClazzByName(String name){
		//byte short int long char float double boolean String
		
		if("byte".equals(name)||"Byte".equals(name)){
			return Byte.class;
		}else if("short".equals(name)||"Short".equals(name)){
			return Short.class;
		}else if("int".equals(name)||"Integer".equals(name)){
			return Integer.class;
		}else if("long".equals(name)||"Long".equals(name)){
			return Long.class;
		}else if("char".equals(name)||"Character".equals(name)){
			return Character.class;
		}else if("float".equals(name)||"Float".equals(name)){
			return Float.class;
		}else if("double".equals(name)||"Double".equals(name)){
			return Double.class;
		}else if("String".equals(name)){
			return String.class;
		}
		return null;
	}
}
